chrome.extension.onRequest.addListener(
    function(request, sender, sendResponse) {
        var myFrameUrl = document.createElement("div");
        myFrameUrl.setAttribute("id", "myFrameUrl");
        myFrameUrl.setAttribute("style", "position: fixed;top:0;left:0;background-color: black;width: 100%;z-index: 9007199254740993;height: 50px;opacity: 0.7;line-height: 50px;font-weight: bold;font-size: 12pt;text-align: left;color: rgb(202, 202, 202);");
        myFrameUrl.innerHTML="<span style='margin: 10px;cursor: pointer;' onclick='document.getElementById(\"myFrameUrl\").remove()'>X</span><span>"+ request.url +"</span>";
        document.getElementsByTagName("body")[0].appendChild(myFrameUrl);
    }
);
